<?php
/**
 * Character fixtures file.
 *
 * Infectamic: browser game (http://infectamic.goldzoneweb.info)
 * Copyright 2011, Loic Chardonnet
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 */

/**
 * Class for Character fixture.
 */
class CharacterFixture extends CakeTestFixture {
    public $name = 'Character';

    public $fields = array(
        'id' => array(
            'type' => 'integer',
            'length' => 20,
            'key' => 'primary',
        ),
        'name' => array(
            'type' => 'string',
            'length' => 20,
        ),
        'resource_kept' => array(
            'type' => 'integer',
            'length' => 7,
        ),
        'resource_spent' => 'integer',
        'attack_modifier' => 'integer',
        'defense_modifier' => 'integer',
        'resource_modifier' => 'integer',
        'created' => 'datetime',
    );

    public $records = array(
        array(
            'id' => 1,
            'name' => 'Alfie',
            'resource_kept' => 1,
            'resource_spent' => 0,
            'attack_modifier' => 0,
            'defense_modifier' => 0,
            'resource_modifier' => 0,
            'created' => '2001-01-01 01:01:01',
        ),
        array(
            'id' => 2,
            'name' => 'Amelia',
            'resource_kept' => 1987200,
            'resource_spent' => 0,
            'attack_modifier' => 0,
            'defense_modifier' => 0,
            'resource_modifier' => 0,
            'created' => '2020-02-20 20:02:20',
        ),
    );
}
